'use strict';

const path = require('path');
const root = path.resolve(__dirname, '..');
const base = path.join(root, 'src', 'docs', 'styleguidek.scss');
const build = path.join(root, 'src', 'docs');

function styleguideStyle(gulp, plugins) {
  return () => gulp.src(base)
    .pipe(plugins.sass({ precision: 10 }))
    .pipe(plugins.autoprefixer({ browser: ['last 2 version'] }))
    .pipe(gulp.dest(build));
}

module.exports = styleguideStyle;
